﻿using Blazor.Diagrams.Core.Geometry;
using OnWork.DataCenter.DAL.DataCenter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnWork.DataCenter.Shared.Pages.DataStandard.Designer
{
    /// <summary>
    /// 节点对象
    /// </summary>
    public class NodeDto
    {

        public string Id { get; set; }
        public string? Title { get; set; }

        public Size? Size { get; set; }

        public Point? Position { get; set; }

        public List<PortDto> Ports { get; set; } = new List<PortDto>();



        /// <summary>
        /// 主键
        /// </summary>
        public long ID { get; set; }

        /// <summary>
        /// 配置名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///需要解析的数据示例
        /// </summary>
        public string DataDemo { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public DataStandardType DataType { get; set; } = DataStandardType.Json;

        /// <summary>
        /// 输出类型
        /// </summary>
        public DataStandardType OutType { get; set; } = DataStandardType.DataTable;

        /// <summary>
        ///标准配置
        /// </summary>
        public string StandardConfig { get; set; }
    }
}
